import 'package:fluent_ui/fluent_ui.dart';
import 'package:flutter_easyloading/flutter_easyloading.dart';
import 'package:provider/provider.dart';

import 'auth_view_form.dart';
import 'auth_view_model.dart';

/// 登录视图入口
class AuthViewMain extends StatelessWidget {
  const AuthViewMain({super.key});

  @override
  Widget build(final BuildContext context) {
    return ChangeNotifierProvider<AuthViewModel>(
      create: (_) => AuthViewModel(),
      builder: EasyLoading.init(),
      child: ScaffoldPage.withPadding(
        content: Center(
          child: const AuthViewForm(),
        ),
      ),
    );
  }
}
